/*
 * Point.h
 *
 *  Created on: Dec 20, 2015
 *      Author: wolf
 */

#ifndef POINT_H_
#define POINT_H_

#include "Shape.h"

class Point: public Shape
{
public:
	Point(float m, float n);
	virtual ~Point();
public:
	void setPoint(float a, float b);
	float getX() const;
	float getY() const;
	virtual void shapeName() const; //对虚函数进行再定义
	//friend ostream & operator <<(ostream &,const Point &);
protected:
	float x, y;
};

#endif /* POINT_H_ */
